﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using RN.ERP.Entity.WF;

namespace RN.ERP.DAL.Context
{
    public class WFDATA_Context : DbContext
    {
        private const string CONNECTION_STRING_NAME = "name=WFdataConnectionString";

        public WFDATA_Context()
            : base(CONNECTION_STRING_NAME)
        {
            Database.SetInitializer<WFDATA_Context>(null);
        }

        #region 实体操作集合

        public DbSet<Tb_Corp_QualitY> Corp_CompanyQualitiesWF { get; set; }
        public DbSet<Tb_Emp_TitleDetailsWf> Emp_Qualities { get; set; }
        public DbSet<Tb_Emp_Manager> Emp_Manager { get; set; }
        public DbSet<T_Sys_Users_WF> T_Sys_Users { get; set; }
        public DbSet<Tb_emp_ManagerCertCountWF> emp_ManagerCertCount { get; set; }

        #endregion

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
    }
}
